<?php


namespace app\api\validate;


use think\Validate;

class CreateDesignValidate extends Validate
{
    protected $rule = [
//        'nickname' => 'require',
        'phone' => 'require|regex:^1[3,4,5,7,8,9][0-9]{9}$',
//        'intro' => 'require',
//        'avatar' => 'require'
    ];

    protected $message = [
//        'nickname.require' => '昵称不能为空',
        'phone.require' => '手机号不能为空',
        'phone.regex' => '手机号格式不正确',
//        'intro.require' => '简介不能为空',
//        'avatar.require' => '头像不能为空'
    ];
}